.ex{
    background-color:#e5eecc;
    padding:7px;
    border:solid 1px #c3c3c3;
}
.ancestors *{ 
   display: block;
   border: 2px solid lightgrey;
   color: lightgrey;
   padding: 5px;
   margin: 15px;
}